package com.alameda.manage.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Map;

/**
 * 技术指标实体类
 *
 * @author Lv
 * @date 2024/08/04
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "business_indicator", autoResultMap = true)
@ApiModel(value = "BusinessIndicatorDO", description = "技术指标")
public class BusinessIndicatorDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @TableField("project_id")
    private Long projectId;

    /**
     * 业务指标描述
     */
    @ApiModelProperty(value = "业务指标描述")
    @TableField("business_indicator_remark")
    private String businessIndicatorRemark;

    /**
     * 状态 （0设计调研中 1开发中 2已完成 ）
     */
    @ApiModelProperty(value = "状态 （0设计调研中 1开发中 2已完成 ）")
    @TableField("state")
    private Integer state;

    /**
     * 创建人id
     */
    @ApiModelProperty(value = "创建人id")
    @TableField("create_id")
    private Long createId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改人id
     */
    @ApiModelProperty(value = "修改人id")
    @TableField("update_id")
    private Long updateId;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 逻辑删除标识符  0 未删除   1 已删除
     */
    @ApiModelProperty(value = "逻辑删除标识符  0 未删除   1 已删除")
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    /**
     * 扩展属性
     */
    @ApiModelProperty(value = "扩展属性")
    @TableField(value = "ext_data", typeHandler = FastjsonTypeHandler.class)
    private Map<String, String> extData;

}

